//
//  PersonInfoViewCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/1.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "PersonInfoViewCell.h"
#import <UIImageView+WebCache.h>

@interface PersonInfoViewCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UIImageView *avatorImage;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@property (nonatomic,assign) InfoType type;

@end
@implementation PersonInfoViewCell

- (void)setInfo:(PersonInfo *)info
{
    _info = info;
    [self.avatorImage sd_setImageWithURL:[NSURL URLWithString:info.portraitUrl] placeholderImage:GetImage(@"person_avatar")];
}
- (void)setAvator:(UIImage *)avator
{
    _avator = avator;
    self.avatorImage.image = avator;    
}

@end
